﻿using System;
using System.ComponentModel;

namespace HML
{
    /// <summary>
    /// CommandButton命令选中更改中事件参数
    /// </summary>
    public class CommandButtonSelectingEventArgs : CancelEventArgs
    {
        private readonly CommandButtonCommand deSelectCommand;
        /// <summary>
        /// 将要取消选中的按钮选项
        /// </summary>
        public CommandButtonCommand DeSelectCommand
        {
            get { return this.deSelectCommand; }
        }

        private readonly CommandButtonCommand selectCommand;
        /// <summary>
        /// 将要选中的按钮选项
        /// </summary>
        public CommandButtonCommand SelectCommand
        {
            get { return this.selectCommand; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="deSelectCommand">将要取消选中的按钮选项</param>
        /// <param name="selectCommand">将要选中的按钮选项</param>
        public CommandButtonSelectingEventArgs(CommandButtonCommand deSelectCommand, CommandButtonCommand selectCommand)
        {
            this.deSelectCommand = deSelectCommand;
            this.selectCommand = selectCommand;
        }

    }

}
